package com.xy.masterdata.domain.repository.impl;

import org.springframework.stereotype.Component;

import com.xy.ddd.core.repository.AbstractRepository;
import com.xy.ddd.core.convertor.AbstractConvertor;
import com.xy.ddd.core.convertor.DefaultConvertor;

import com.xy.masterdata.infrastructure.persistent.po.AppInfo;
import com.xy.masterdata.domain.model.AppInfoDomainModel;
import com.xy.masterdata.infrastructure.persistent.mapper.AppInfoMapper;
import com.xy.masterdata.domain.repository.AppInfoRepository;


@Component
public class AppInfoRepositoryImpl extends AbstractRepository<AppInfoDomainModel, AppInfo, AppInfoMapper> implements AppInfoRepository{

    private AbstractConvertor<AppInfoDomainModel, AppInfo> convertor = new DefaultConvertor<AppInfoDomainModel, AppInfo>(){};

    @Override
    public AbstractConvertor<AppInfoDomainModel, AppInfo> convertor() {
        return convertor;
    }

}
